//
//  NavButton.m
//  Borderless
//
//  Created by Bager on 2017/11/1.
//  Copyright © 2017年 Bager. All rights reserved.
//

#import "NavButton.h"

#define vkNaviButtonWidth 40.f

@implementation NavButton

- (CGRect)imageRectForContentRect:(CGRect)contentRect
{
    CGFloat imageW = vkNaviButtonWidth;
    CGFloat imageH = vkNaviButtonWidth;
    CGFloat imageX = (contentRect.size.width - imageW) * 0.5;
    CGFloat imageY = 0;
    
    return CGRectMake(imageX, imageY, imageW, imageH);
}

@end
